package jp.seraph.same.view.gui.tree;

import jp.seraph.same.controller.MotionController;
import jp.seraph.same.model.MotionModel;

public class MotionObject implements TreeUserObject {
    public MotionObject(MotionModel aMotion, MotionController aController){
        mMotion = aMotion;
        mController = aController;
    }

    private MotionModel mMotion;
    private MotionController mController;

    public MotionModel getMotion(){
        return mMotion;
    }

    public MotionController getController(){
        return mController;
    }

    public String getModelName() {
        return mMotion.getName();
    }

    @Override
    public String toString() {
        return mMotion.getName();
    }
}
